import { createApp } from 'vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'


import echarts from '@/utils/echarts'

import App from './App.vue'
import api from '@/api/api'

import store from './store'
import router from './router'

const app = createApp(App)

//挂载请求访问
app.config.globalProperties.$echarts = echarts;//vue3的挂载方式
window.req = api
app.use(store)
app.use(router)
app.use(ElementPlus)
app.mount('#app')